package varton.abstracts;

public abstract class AbstractFactory {
    public static AbstractFactory getFactory(String brand){
        if ("Adidas".equalsIgnoreCase(brand)){
            return new AdidasFactory();
        }else if("Nike".equalsIgnoreCase(brand)){
            return new NikeFactory();
        }else if ("Anta".equalsIgnoreCase(brand)){
            return new AntaFactory();
        }
        return null;
    }

    public abstract Shoes newInstance();
}
